﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RabbitMQ.Client;

namespace Core.RabbitMQ
{
    public interface IRabbitMqConnectionProxy
    {
        /// <summary>
        /// RabbitMQ配置
        /// </summary>
        RabbitMqOptions RabbitMqOptions { get; }

        /// <summary>
        /// 创建连接
        /// </summary>
        /// <returns></returns>
        IConnection CreateConnection();
    }
}
